home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: 9 Mar 1996 12:53:14 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4hsk2q$bas@solutions.solon.com>
- References: <00001a73+00002504@msn.com> <dewar.826146475@schonberg> <4hmlca$a30@solutions.solon.com> <4horqr$1kd@unda.fi>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4horqr$1kd@unda.fi>, Olavi Sakari <olle@gustav.unda.fi> wrote:
- >In article <4hmlca$a30@solutions.solon.com>, seebs@solutions.solon.com (Peter Seebach) writes:
- > > I have to admit, I've only seen them used in NetHack. No other code I've
- > > ever read used bitfields. :)
-
- >Hmmm... Then you have never read the *.h files in (Unix) /usr/include/sys
- >or /usr/include? :-)
-
- Nope, and sure enough, there's bitfields there on my system. Of course,
- they're only in the networking, hardware, and filesystem code. There are
- none in any of the standard library functions, and none in any code the
- user is likely to be correct to be mucking with. They appear to be
- pretty useful for internals, if mildly unportable. (The code appears
- to depend on "unsigned foo:4, bar:4" being packed as an unsigned char.)
-
- Cool! Now I'll believe they're useful.
-
- Maybe I should start using bitfields.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-